package com.sgu6.sgu6_machine.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.sgu6.sgu6_machine.ui.MainA;


public class LauncherR extends BroadcastReceiver {

    protected final String TAG = LauncherR.class.getSimpleName();

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.i(TAG, "onReceive: 启动app");
        Intent it = new Intent(context, MainA.class);
        it.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(it);
    }
}
